package com.itfenxiang.swagger.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.itfenxiang.swagger.entity.User;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.*;

/**
 * @description: TODO
 * @author: 墨凡
 * @date: 2024/5/2 12:04
 * @version: 1.0
 */
@Tag(name = "系统管理")
@RestController
@RequestMapping("sys")
public class SysController {

    @Operation(description = "获取字符串")
    @GetMapping("str")
    public String getString() {
        return "sac";
    }

    @PostMapping("post")
    @ApiOperationSupport(author = "杨总")
    public User getUser(){
        User user = new User();
        user.setId(1L);
        user.setName("杨总");
        System.out.println(user);
        return user;
    }


}
